# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class RenewInstanceParam(object):

    def __init__(self, appCode, serviceCode, timeSpan, timeUnit, instanceIds, unifyDate=None, autoPay=None, returnURL=None):
        """
        :param appCode:  业务线
        :param serviceCode:  产品线
        :param timeSpan:  续费时长(timeUnit=MONTH时只能传1、2、3、4、5、6、7、8、9,timeUnit=YEAR时只能传1、2、3)
        :param timeUnit:  时间单位(MONTH-月,YEAR-年)
        :param instanceIds:  待续费资源ID列表,英文逗号分隔
        :param unifyDate: (Optional) 是否统一到期日续费(YES-是,NO-否)，默认为NO
        :param autoPay: (Optional) 是否自动支付，默认为true，外部用户调用时只能传true
        :param returnURL: (Optional) 支付成功后的回调地址
        """

        self.appCode = appCode
        self.serviceCode = serviceCode
        self.timeSpan = timeSpan
        self.timeUnit = timeUnit
        self.instanceIds = instanceIds
        self.unifyDate = unifyDate
        self.autoPay = autoPay
        self.returnURL = returnURL
